/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.application.user.command;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

@Data
@Schema(description = "更新管理员和租户关系命令")
public class UpdateUserTenantCmd {

  @NotNull(message = "{userTenant.userId.required}")
  @Range(min = 0, max = 2147483647, message = "{userTenant.userId.range}")
  @Schema(description = "管理员")
  private Integer userId;

  @NotBlank(message = "{userTenant.tenantCode.required}")
  @Length(max = 36, message = "{userTenant.tenantCode.max.length}")
  @Schema(description = "租户编码")
  private String tenantCode;

  @Range(min = -127, max = 128, message = "{userTenant.lastSelect.range}")
  @Schema(description = "最近选择")
  private Integer lastSelect;
}
